package io.renren.modules.efinance.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.efinance.dao.HistoryAccountflowDao;
import io.renren.modules.efinance.entity.HistoryAccountflowEntity;
import io.renren.modules.efinance.service.HistoryAccountflowService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("historyAccountflowService")
public class HistoryAccountflowServiceImpl extends ServiceImpl<HistoryAccountflowDao, HistoryAccountflowEntity> implements HistoryAccountflowService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HistoryAccountflowEntity> page = this.page(
                new Query<HistoryAccountflowEntity>().getPage(params),
                new QueryWrapper<HistoryAccountflowEntity>()
        );

        return new PageUtils(page);
    }

}